import { createAction} from 'redux-actions'
import {admin,} from 'api'
import {createAjaxAction,fakeAjaxAction,} from 'utils'
  
export const usergetlist = createAjaxAction(admin.admingetuserlist)

export const useraddfetch = createAjaxAction(admin.useradd)

export const usereditfetch = createAjaxAction(admin.editadd)

export const userdelfetch = createAjaxAction(admin.deleteuser)

export const getmenuList = createAjaxAction(admin.getmenu)

export const addrolefetch = createAjaxAction(admin.addrole)

export const editrolefetch = createAjaxAction(admin.editrole)

export const rolelistfetch = createAjaxAction(admin.admingetrolelist)

//系统管理-基础数据类型
export const dataTypeSelect = createAjaxAction(admin.dataTypeSelectList)

//系统管理-基础数据列表查询
export const baseDataSelect = createAjaxAction(admin.baseDataSelectList)

//系统管理-基础数据-新增
export const addBaseData = createAjaxAction(admin.addBaseDataList)

//系统管理-基础数据-编辑
export const editBaseData = createAjaxAction(admin.editBaseDataList)

//系统管理-基础数据-删除
export const deleteBaseData = createAjaxAction(admin.deleteBaseDataList)

export const dellistfetch = createAjaxAction(admin.delrolelist)

export const savemenulistfetch = createAjaxAction(admin.savemenulist)

//系统管理-基础数据-三级菜单
export const baseDatathree = createAjaxAction(admin.baseDatathreeSelectList)

//系统管理-版本控制-列表查询
export const versionControl = createAjaxAction(admin.versionControlList)

//系统管理-版本控制-详情查询
export const versionInfo = createAjaxAction(admin.versionInfoList)

//系统管理-版本控制-新增数据
export const versionAdd = createAjaxAction(admin.versionAddList)

//系统管理-版本控制-编辑数据
export const versionEdit = createAjaxAction(admin.versionEditList)

//系统管理-版本控制-删除数据
export const versionDelete = createAjaxAction(admin.versionDeleteList)